package org.czl.gh;

import java.util.Scanner;

public class cg {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < n; i++) {
            arr[i] = sc.nextInt();
        }
        int ans = 0;
        for(int i : arr){
            if(i == 100){
                ans+= 10;
                continue;
            }
            if(i >= 95 && i <= 99){
                ans+= 8;
                continue;
            }
            if(i >= 90 && i <= 94){
                ans+= 5;
                continue;
            }
            if(i >= 85 && i <= 89){
                ans += 3;
                continue;
            }
            if(i >= 80 && i <= 84){
                ans += 2;
                continue;
            }
            if(i >= 75 && i <= 79){
                ans += 1;
                continue;
            }
        }
        System.out.println(ans);
    }
}
